<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>订单详情</title>
		<meta name="viewport"
			content="width=device-width,height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="renderer" content="webkit" />
		<meta name="aplus-xplug" content="NONE">
		<link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/iconfont/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="/static/layui/css/modules/admin/default/admin.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/new_layui.css" />
		<link rel="stylesheet" type="text/css" href="/static/css/default.css" />

		<style>
			.addRedStar:after {content: '*';color: red;font-size: 20px;vertical-align: middle;}
			#shopping_list {
				color: #3c3c3c;
			}

			#shopping_list .layui-form-radio {
				padding-left: 20px;
				display: block;
			}
.layui-textarea {
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: scroll;
}
			#shopping_list .layui-form-radioed {
				border: 1px solid #119fff;
				background-color: #D9EDF7;
				margin: 5px 0 7px;
				-webkit-box-shadow: 5px 5px 0 #f3f3f3;
				box-shadow: 5px 5px 0 #f3f3f3;

			}
			.layui-btn2{
				display: inline-block;
				height: 38px;
				line-height: 38px;
				padding: 0 8px;
				background-color: #009688;
				color: #fff;
				white-space: nowrap;
				text-align: center;
				font-size: 14px;
				border: none;
				border-radius: 2px;
				cursor: pointer;
				margin-top: 10px;
			}
			.layui-btn+.layui-btn{margin-left: 0px;}
			.layui-form-label2 {
				float: left;
				display: block;
				padding: 9px 15px 9px 0px;
				font-weight: 400;
				line-height: 20px;
			}

			form .layui-form-item .layui-form-label {
				width: 70px;
			}

			#shopping_list .layui-form-radioed div {
				font-size: 16px;
				font-weight: bold;
				line-height: 36px;
			}

			#shopping_list .phone {
				font-weight: 700;
				font-size: 16px;
				color: grey;
			}

			#shopping_list .edit_shopping {
				padding-left: 10px;
				font-weight: normal;
				color: #ff6600;
				display: inline;
			}

			.express_no {
				color: #0077CF;
			}

			.express_time {
				font-size: 12px;
				color: #808080;
			}

			.layui-field-box .layui-form-item {
				margin-bottom: 0px;
			}

			.invoice-link {
				background: #2F4056;
				padding: 4px 10px;
				border-radius: 3px;
				font-style: italic;
				vertical-align: middle;
			}

			.error-class .layui-checkbox-disbaled span{
				background-color: #FF5722 !important;
			}
			.error-class .layui-checkbox-disbaled, .error-class .layui-checkbox-disbaled i,  .error-class .layui-checkbox-disbaled i:hover{
				border-color: #FF5722 !important;
			}

			.baojiaxinxi div {
				line-height: 28px;
				padding-left: 20px;
				cursor: pointer;
			}

			.baojiaxinxi div:hover,
			.baojiaxinxi div.active {
				color: #119FFF;
			}

			.baojiaxinxi div.active::before {
				content: "√";
				width: 20px;
				padding-left: -20px;
			}
			
			#img_arr_box{
				display: flex;
				flex-wrap: wrap;
				justify-content: flex-start;
				align-items: flex-start;
				margin-bottom: 10px;
			}
			.img-box{
				width:60px;
				height:60px;
				margin-bottom: 10px;
				margin-right: 10px;
				cursor: pointer;
			}
		</style>
	</head>
	<body class="default">
		<div id="select_orders" style="display: none; padding: 20px;">
			<div class="layui-form" style="display: flex; justify-content: space-between;width: 100%;">
				<div>
				<textarea name="input_order" id="input_order" style="height: 300px;width: 180px;" placeholder="粘贴/输入订单号,每行一个订单" class="layui-textarea"></textarea>
				<div><button type="button" id="search_order_btn" class="layui-btn layui-btn-normal search_order_btn" style="width: 180px;">搜索订单号</button></div>
				</div>
				<div>
					<div id="check_order" style="height: 300px; width: 740px; border: 1px solid #f0f0f0; overflow-y: auto;">

					</div>
					<div style="line-height: 36px;">采购总金额：<span id="caigou_all_money">0</span></div>
				</div>
			</div>
		</div>
		<div style="margin: 30px 20px;">

			<form class="layui-form" lay-filter="tpl_order" action="{:url('order/saveData')}">
				<div class="layui-form-item">
					<div class="layui-input-block" style="margin-left:0px;">
						<ul class="layui-timeline layui-timeline-plane">
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 1"}half{elseif
								condition="$data['order_state'] GT 1" /} over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-radio"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>下单</span></h3>
									<p>{$data.create_time}</p>
								</div>
							</li>
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 2"}half{elseif
								condition="$data['order_state'] GT 2" /} over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
									$data['order_state'] EGT 2"}layui-icon-radio{/if}"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>指派订单</span></h3>
									<p>{$data.confirm_time}</p>
								</div>
							</li>
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 3"}half{elseif
								condition="$data['order_state'] GT 3" /} over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
									$data['order_state'] EGT 3"}layui-icon-radio{/if}"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>发货</span></h3>
									<p>{$data.shopping_time}</p>
								</div>
							</li>
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 4"}half{elseif
								condition="$data['order_state'] GT 4" /} over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
									$data['order_state'] EGT 4"}layui-icon-radio{/if}"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>收货</span></h3>
									<p>{$data.receipt_time}</p>
								</div>
							</li>
							<li class="layui-timeline-item {if condition=" $data['order_state'] EQ 5"}over{/if}">
								<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
									$data['order_state'] EGT 5"}layui-icon-radio{/if}"></i>
								<div class="layui-timeline-content layui-text">
									<h3 class="layui-timeline-title"><span>完成</span></h3>
									<p>{$data.over_time}</p>
								</div>
							</li>
						</ul>
					</div>
				</div>
				<table width="100%">
					<tr>
						<td width="40%">
							<div class="layui-form-item">
								<div class="layui-input-block" style="margin:0px;">
									{if condition="!in_array($data['order_type'],[5,7])"}
									{if condition="$data['order_state'] EQ 1"}
									<button type="button" class="layui-btn layui-btn-normal" lay-filter="confirm_order">确认</button>
									{/if}
									{if condition="menuAuth('order_zpgys')"}

										{if condition="$data['supplier_state'] EQ 2"}
										   <button type="button" class="layui-btn layui-btn-normal" lay-filter="zhiding">指定供应商</button>
										   {elseif condition="$data['supplier_state'] EQ 1"}
										   {if condition="menuAuth('order_cxzpgys')"}
												   <button type="button" class="layui-btn layui-btn-normal" lay-filter="zhiding">重新指派</button>
											{/if}
										   {else /}
											 {if condition="menuAuth('order_cxzpgys')"}
													<button type="button" class="layui-btn layui-btn-normal" lay-filter="zhiding">重新指派</button>
											 {/if}
											 <div class="layui-btn layui-btn-normal layui-bg-black" style="color:#ffffff;">等待确认</div>
										{/if}


										{if condition="MEMBER_ID EQ '193'"}
										<button type="button" class="layui-btn layui-btn-normal" lay-filter="zhiding">强制指派</button>
										{/if}
										{if condition="$data['order_state'] EQ 4 && $data['receipt_state'] EQ 2 && $data['pay_state'] EQ 2"}
											<button type="button" class="layui-btn layui-btn-normal" lay-filter="over_order">完成</button>
									   {/if}
									   {if condition="menuAuth('order_sqfz')"}

											   <button type="button" class="layui-btn layui-btn layui-btn-danger" lay-filter="cancel_order">取消</button>

											{if condition="$data['is_feizhi'] EQ 0"}
												<button type="button" class="layui-btn layui-btn layui-btn-danger" lay-filter="apply_feizhi">申请废止</button>
											{/if}
											{if condition="$data['is_feizhi'] EQ 4"}
												<button type="button" class="layui-btn layui-btn layui-btn-danger" lay-filter="audit_feizhi">审核废止</button>
											{/if}
										{/if}
									{/if}
									{/if}
									<button type="button" id="close_page" class="layui-btn layui-btn-primary">关闭</button>
								</div>
							</div>
						</td>
						<td width="20%">
							<div class="layui-form-item">
								<label class="layui-form-label">订单类型</label>
								<div class="layui-input-block" style="margin-left:115px">
									{if condition="menuAuth('order_ddlx')"}
									<select name="order_type" lay-filter="order_type_filter">
										{else /}
										<select name="order_type" lay-filter="order_type_filter" disabled="disabled">
											{/if}
											<option value="1">自然订单</option>
											<option value="2">报备订单</option>
											<option value="3">其他</option>
											<option value="4">改供货商</option>
											<option value="5">退货</option>
											<option value="6">竞价订单</option>
											<option value="7">废止订单</option>
											<option value="8">前报备</option>
											<option value="9">后报备</option>
											<option value="10">带量竞价</option>
											<option value="12">医疗器械单</option>
										</select>
								</div>
							</div>
						</td>
						<td width="20%">

							<div class="layui-form-item">
								<label class="layui-form-label">售后类型</label>
								<div class="layui-input-block" style="margin-left:115px">
									<select name="shouhou_type" lay-filter="shouhou_type_filter">
											<option value="1">无需售后</option>
											<option value="2">漏发货</option>
											<option value="3">多发货</option>
											<option value="4">错发</option>
											<option value="5">换货</option>
											<option value="6">退货</option>
											<option value="7">维修调试</option>
											<option value="8">安装</option>
										</select>
								</div>
							</div>

						</td>
						<td width="10%">
							<div class="layui-form-item">
								<label class="layui-form-label">业务员</label>
								<div style="line-height: 38px;">
									{$data.yewuyuan}
								</div>
							</div>
						</td>
						<td width="10%">
							<div class="layui-form-item">
								<label class="layui-form-label">助理</label>
								<div style="line-height: 38px;">
									{$data.zhuli}
								</div>
							</div>
						</td>
					</tr>
				</table>
				<table>
					<tr>
						<td>
							<div class="layui-form-item">
								<label class="layui-form-label">订单号</label>
								<div class="layui-input-inline" style="width:250px;">
									<span
										style="font-size: 16px; color: #ff6600; line-height: 38px;">{$data.out_order_no}</span>
								</div>
							</div>
						</td>
						<td>
							<div class="layui-form-item">
								<label class="layui-form-label">下单时间</label>
								<div class="layui-input-inline" style="width:250px;">
									<span
										style="font-size: 16px; color: #ff6600; line-height: 38px;">{$data.create_time}</span>
								</div>
							</div>
						</td>
						<td>
							<div class="layui-form-item">
								<label class="layui-form-label">订单金额</label>
								<div class="layui-input-inline text-price" style="width:180px;">
									{$data.order_money}
								</div>

							</div>
						</td>
						<td>
							<div class="layui-form-item">
								<label class="layui-form-label">采购金额</label>
								<div class="layui-input-inline text-price" style="width:180px;">
									{$data.supplier_rate_money}
								</div>
							</div>
						</td>
						<td>
							{if condition="menuAuth('order_xgzkl')"}
							<div class="layui-form-item">
								<label class="layui-form-label">折扣率</label>
								<div class="layui-input-inline" style="width:180px;display: flex;">
									<input type="number" name="supplier_rate_input" id="supplier_rate_input" class="layui-input" value="{$data.supplier_rate}"/>
									<button type="button" class="layui-btn" id="edit_rate_btn">修改</button>
								</div>
							</div>
							{/if}
						</td>
					</tr>
				</table>

				<table width="100%">
					<tr>
						<td width="33%" valign="top">
							<div class="layui-form-item">

								<div class="">
									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div>
											<label style="text-align:left; font-weight:bolder;">曾指派过的供应商</label>
										</div>
										{volist name="supplier_list" id="list"}
										<div style="margin-top: 10px;">
											{$list.supplier_name}
										</div>
										{/volist}
									</blockquote>
								</div>
								<div class="">
									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div>
											<label style="text-align:left; font-weight:bolder;">新客户比较</label>
										</div>
										<div style="margin-top: 10px;">
											新手机号：<span class="error" id="com_phone">{$data['is_new_phone']?'是':'否'}</span>
										</div>
										<div style="margin-top: 10px;">
											新地址：<span class="error" id="com_addr">{$data['is_new_addr']?'是':'否'}</span>
										</div>
									</blockquote>
								</div>
								<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
									<div>
										<button type="button" data-email="{$data['email']}" class="layui-btn layui-btn-sm send_email_attr"><i
										class="layui-icon layui-icon-export"></i>发送邮件附件</button>
										<span class="success" id="send_email_txt">
											{if condition="$data['is_send_mail'] EQ 1"}
											邮件已发送
											{/if}
										</span>
									</div>
								</blockquote>

									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div>
											<input type="hidden" name="caigou_hetong" id="caigou_hetong"
												value="{$data.caigou_hetong|default=''}" />
											<div style="margin-bottom: 10px;">
												　　销售合同：{if condition="$data.xsht EQ ''"}
												未生成
												{elseif condition="$data.xsht EQ '生成中'" /}
												生成中...
												{else /}
												<a href="{$data.xsht}" target="_blank" class="layui-btn layui-btn-warm layui-btn-sm "><i class="layui-icon layui-icon-download-circle"></i>销售合同</a>
												<!--
												<button type="button"
													class="layui-btn layui-btn-sm up_xiaoshou_xieyi"><i
														class="layui-icon layui-icon-upload"></i>上传合同</button>
												<span class="invoice-link">
													<a href="{$data['xsht']}" style="color: #ffffff;"
														title="{$data.xsht}" target="_blank"><i
															class="layui-icon layui-icon-link"></i>查看合同</a>
												</span>
												-->
												<button type="button" data-email="{$data['email']}" data-invoice_url="{$data.xsht}" class="layui-btn layui-btn-sm send_email layui-bg-red">发邮件</button>
												{/if}
											</div>
											<div style="margin-bottom: 10px; ">
												　　采购合同：
												{if condition="$data.cght EQ ''"}
												未生成
												{elseif condition="$data.cght EQ '生成中'" /}
												生成中...
												{else /}
												<a href="{$data.cght}" target="_blank" class="layui-btn layui-btn-warm layui-btn-sm "><i class="layui-icon layui-icon-download-circle"></i>采购合同</a>
												<button type="button" class="layui-btn layui-btn-sm up_caigou_hetong"><i class="layui-icon layui-icon-upload"></i>上传采购合同</button>
												{if condition="menuAuth('order_cght')"}
												<button type="button" class="layui-btn layui-btn-sm resetCght" data-type="cght"><i
														class="layui-icon layui-icon-refresh"></i>重新生成</button>
												{/if}
												<!--
												<button type="button" class="layui-btn layui-btn-sm up_caigou_xieyi"><i
														class="layui-icon layui-icon-upload"></i>上传合同</button>
												<span class="invoice-link">
													<a href="{$data.cght}" style="color: #ffffff;" title="{$data.cght}"
														target="_blank"><i
															class="layui-icon layui-icon-link"></i>查看合同</a>
												</span>
												-->
												{/if}
											</div>
											<div style="margin-bottom: 10px; display: none;">
												　　采购合同：
												{if condition="$data.cght EQ ''"}
												未生成{elseif condition="$data.cght EQ '生成中'" /}
												生成中...
												{else /}
												<a href="{$data.cght}" target="_blank"
													class="layui-btn layui-btn-warm layui-btn-sm "><i
														class="layui-icon layui-icon-download-circle"></i>采购合同</a>

												<!--<button type="button" class="layui-btn layui-btn-sm up_caigou_hetong"><i class="layui-icon layui-icon-upload"></i>上传采购合同</button>
												{if condition="$data.caigou_hetong >0"}
												<span class="invoice-link">
													<a href="{$data['caigou_hetong_info']['save_path']}"
														style="color: #ffffff;"
														title="{$data.caigou_hetong_info.file_name}" target="_blank"><i
															class="layui-icon layui-icon-link"></i>查看合同</a>
												</span>
												{/if}-->
											</div>
											{/if}
										</div>
										<div style="margin-bottom: 10px;">
											　　　送货单（有金额）：
											{if condition="$data.shd EQ ''"}
											未生成
											{elseif condition="$data.shd EQ '生成中'" /}
											生成中...
											{else /}
											<a href="{$data.shd}" target="_blank" class="layui-btn layui-btn-warm layui-btn-sm "><i class="layui-icon layui-icon-download-circle"></i>送货单</a>
											<!--
											<button type="button" class="layui-btn layui-btn-sm up_songhuodan"><i
													class="layui-icon layui-icon-upload"></i>上传送货单</button>
											<span class="invoice-link">
												<a href="{$data['shd']}" style="color: #ffffff;" title="{$data.shd}"
													target="_blank"><i class="layui-icon layui-icon-link"></i>查看送货单</a>
											</span>
										-->
											<button type="button" data-email="{$data['email']}" data-invoice_url="{$data['shd']}"
													class="layui-btn layui-btn-sm send_email layui-bg-red">发邮件</button>
											{/if}
										</div>

										<div style="margin-bottom: 10px;">
											　　　验收单（无金额）：
											{if condition="$data.ysd EQ ''"}
											未生成

											{elseif condition="$data.ysd EQ '生成中'" /}
											生成中...
											{else /}
											<a href="{$data.ysd}" target="_blank" class="layui-btn layui-btn-warm layui-btn-sm "><i class="layui-icon layui-icon-download-circle"></i>验收单</a>
											<button type="button" data-email="{$data['email']}" data-invoice_url="{$data['ysd']}"
													class="layui-btn layui-btn-sm send_email layui-bg-red">发邮件</button>

											{/if}
											{if condition="$data.ysd EQ ''"}
											<button type="button" data-order_no="{$data['order_no']}"
													class="layui-btn layui-btn-sm create_ysd layui-bg-red">生成验收单</button>
											{/if}
										</div>
										<div style="margin-bottom: 10px;">
											销售发票明细：
											{if condition="$data.xsfp EQ ''"}
											未生成
											{elseif condition="$data.xsfp EQ '生成中' OR $data.xsfp EQ '无发票明细'" /}
											{$data.xsfp}...
											{else /}
											<a
												href="{$data.xsfp}" target="_blank"
												class="layui-btn layui-btn-warm layui-btn-sm "><i
													class="layui-icon layui-icon-download-circle"></i>销售发票明细</a>
											<button type="button" class="layui-btn layui-btn-sm resetCgfp" data-type="xsfp"><i
													class="layui-icon layui-icon-refresh"></i>重新生成</button>
											{/if}
										</div>
										<div style="margin-bottom: 10px;">
											采购发票明细：
											{if condition="$data.cgfp EQ ''"}
											未生成
											{elseif condition="$data.cgfp EQ '生成中' OR $data.cgfp EQ '无发票明细'" /}
											{$data.cgfp}...{else /}
											<a
												href="{$data.cgfp}" target="_blank"
												class="layui-btn layui-btn-warm layui-btn-sm "><i
													class="layui-icon layui-icon-download-circle"></i>采购发票明细</a>

											<button type="button" class="layui-btn layui-btn-sm resetCgfp" data-type="cgfp"><i
													class="layui-icon layui-icon-refresh"></i>重新生成</button>
											{/if}
										</div>
									</blockquote>
								</div>
							</div>
							<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
								<div class="layui-form-item">
									<label class="layui-form-label">供应商发货</label>
									<div class="layui-input-inline" style="line-height: 38px;width:99%;">
										{if condition="$data['gys_fh_state'] EQ 1"}
										已发货（{$data.wuliu}【{$data.wuliudanhao}】【{$data.delivery_date}】）
										{else /}
										未发货
										{/if}
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">供应商收货</label>
									<div class="layui-input-inline" style="line-height: 38px;width:100px;">
										{if condition="$data['gys_sh_state'] EQ 1"}
										已收货
										{else /}
										未收货
										{/if}
									</div>
								</div>

								<div class="layui-form-item">
									<label class="layui-form-label">采购合同</label>
									<div class="layui-input-block" style="margin-left:0px;">
										<blockquote class="layui-form-label2">
											<div>
												{if condition="$data.caigou_hetong >0"}
												<span class="invoice-link">
													<a href="{$data['caigou_hetong_info']['save_path']}"
														style="color: #ffffff;"
														title="{$data.caigou_hetong_info.file_name}" target="_blank"><i
															class="layui-icon layui-icon-link"></i>查看合同</a>
												</span>
												{else /}
												[未上传采购合同]
												{/if}
											</div>
										</blockquote>
									</div>
								</div>

							</blockquote>
						</td>
						<td width="33%" valign="top">


							<div class="layui-form-item" id="invoice_info">

								<div class="">
									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div class="layui-form-item" style="display:none;">
											<label class="layui-form-label">发票信息</label>
											<div class="layui-input-block">
												<input type="radio" name="is_invoice" checked="" lay-filter="is_invoice"
													value="{$data.is_invoice}" title="{$data.is_invoice_text}">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">汇款单位</label>
											<div class="layui-input-inline">
												<input type="text" disabled="disabled" name="huikuandanwei"
													id="huikuandanwei" value="{$data.huikuandanwei}" class="layui-input"
													style="border: 0px;" />
											</div>
										</div>
										<!-- {if condition="$data['returncode'] NEQ '成功' && $data['invoice_state'] NEQ '2'"} -->
										{if condition="$data['returncode'] NEQ '成功' AND (!isset($data['invoice_info_one']) OR !isset($data['invoice_info_one']['invoice_proof']) OR $data['invoice_info_one']['invoice_proof'] EQ '')"}
										<div class="layui-form-item">
											<label class="layui-form-label">发票类型</label>
											<div class="layui-input-inline">
												<input type="radio" name="invoice_type" lay-filter="invoice_type"
													value="1" checked="" title="普通发票">
												<input type="radio" name="invoice_type" lay-filter="invoice_type"
													value="3" {if
													condition="isset($data['invoice_info_one']['invoice_type']) and $data['invoice_info_one']['invoice_type'] EQ 3"
													}checked="" {/if} title="详细发票">
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">发票抬头</label>
											<div class="layui-input-inline">
												<input name="invoice_title" type="text"
													value="{$data.invoice_info_one.invoice_title|default=''}"
													class="layui-input" />
											</div>
										</div>
										<div class="layui-form-item">
											<label class="layui-form-label">税号</label>
											<div class="layui-input-inline">
												<input name="invoice_duty" type="text"
													value="{$data.invoice_info_one.invoice_duty|default=''}"
													class="layui-input" oninput = "value=value.replace(/[\u4E00-\u9FA5]/g,'')" />
											</div>
										</div>
										<div class="layui-form-item">
								<label class="layui-form-label">发票备注</label>
								<div class="layui-input-inline">
									<input name="invoice_beizhu" type="text" value="{$data.invoice_info_one.invoice_beizhu|default=''}" class="layui-input" />
								</div>
							</div>
										<div class="layui-form-item">
											<label class="layui-form-label">发票号</label>
											<div class="layui-input-inline">
												<input name="fapiaohao" type="text"
													value="{$data.invoice_info_one.fapiaohao|default=''}"
													class="layui-input" />
											</div>
										</div>

										<div class="layui-form-item invoice_type3">
											<label class="layui-form-label">地址</label>
											<div class="layui-input-inline">
												<input name="invoice_addr" type="text" class="layui-input" value="{$data.invoice_info_one.invoice_addr|default=''}"/>
											</div>
										</div>
										<div class="layui-form-item invoice_type3">
											<label class="layui-form-label">电话</label>
											<div class="layui-input-inline">
												<input name="invoice_tel" type="text" class="layui-input" value="{$data.invoice_info_one.invoice_tel|default=''}"/>
											</div>
										</div>
										<div class="layui-form-item invoice_type3">
											<label class="layui-form-label">开户银行</label>
											<div class="layui-input-inline">
												<input name="invoice_bank" type="text" class="layui-input" value="{$data.invoice_info_one.invoice_bank|default=''}"/>
											</div>
										</div>
										<div class="layui-form-item invoice_type3">
											<label class="layui-form-label">开户账号</label>
											<div class="layui-input-inline">
												<input name="invoice_account" type="text" class="layui-input" value="{$data.invoice_info_one.invoice_account|default=''}"/>
											</div>
										</div>

										<div class="layui-form-item">
											<label class="layui-form-label">发票凭证</label>
											<div class="layui-input-inline">
												<input type="hidden" name="invoice_proof" />
												<button type="button" class="layui-btn layui-btn-sm up_invoice_start"><i
														class="layui-icon layui-icon-upload"></i>发票凭证</button>
												<span class="invoice-link infoice-start" style="display: none;">

												</span>
											</div>
										</div>

										<div class="layui-form-item">
											<label class="layui-form-label"></label>
											<div class="layui-input-inline" style="width: 400px;">
												{if condition="!in_array($data['order_type'],[5,7])"}
												<button type="button" lay-submit lay-filter="submit_invoice" id="btn-invoice" class="layui-btn2 layui-btn-normal">提交发票</button>
												{if condition="menuAuth('order_xgfp')"}
											{volist name="data['invoice_info_list']" id="list"}
												<button type="button" class="layui-btn2 layui-btn-normal apply_invoice_view">修改发票</button>
												{if condition="isset($list['order_nos'])"}
													{if condition="$data['returncode'] NEQ '成功' || $data['returncode'] NEQ '线下开票成功'"}
														{if condition="isset($data['invoice_info_one']) AND $data['invoice_info_one']['api_bianhao']"}
														<button disabled class="layui-btn layui-btn-disabled">已申请</button>
														{else /}
														<button type="button" lay-submit data-order_nos="{$list.order_nos}"	class="layui-btn2 layui-btn-normal send_einvoice layui-bg-blue">申电子</button>
														<button type="button" lay-submit data-order_nos="{$list.order_nos}"	class="layui-btn2 layui-btn-normal send_sdinvoice layui-bg-blue">申数电</button>
														{/if}
													{/if}
													<button type="button" lay-submit data-order_nos="{$list.order_nos}"	class="layui-btn2 layui-btn-normal check_einvoice layui-bg-green">获电子</button>
													<button type="button" lay-submit data-order_nos="{$list.order_nos}"	class="layui-btn2 layui-btn-normal check_sdinvoice layui-bg-green">获数电</button>
												{/if}

											{/volist}
											{$data.returncode}
												{/if}
												{/if}
											</div>
										</div>
										{else /}
										{volist name="data['invoice_info_list']" id="list"}
										<div class="layui-form-item">
											<div class="layui-input-block" style="margin-left: 0;">
												{if condition="$list['invoice_type'] NEQ 3"}
												{$list.invoice_title} {$list.invoice_duty} 发票金额：{$list.invoice_money}
												{/if}
												{if condition="$list['invoice_type'] EQ 3"}
												【增值税发票】{$list.invoice_title} {$list.invoice_duty}<br>发票金额：{$list.invoice_money}
												{/if}
										{if condition="$list['invoice_proof'] NEQ ''"}
													<span class="invoice-link">
														<a href="{$list['invoice_proof']['save_path']}"
															style="color: #ffffff;"
															title="{$list.invoice_proof.file_name}" target="_blank"><i
																class="layui-icon layui-icon-link"></i>查看</a>
													</span>

													<!--	{if condition="$list['api_type'] NEQ '026'"}
												<button type="button" data-invoice_id="{$list.invoice_id}"
													class="layui-btn layui-btn-normal layui-btn-sm get_invoice"><i
														class="layui-icon layui-icon-ok-circle"></i>发票已收货</button>
												{/if}
												-->
													{/if}
												{if condition="$list['state'] EQ 4"}
												已红冲
												<p style="margin-top:20px;"> <button type="button"
														data-invoice_id="{$list.invoice_id}"
														class="layui-btn layui-btn-sm up_invoice"><i
															class="layui-icon layui-icon-upload"></i>凭证</button>

													<button type="button" data-order_nos="{$list.order_nos}"
														class="layui-btn layui-btn-sm send_einvoice layui-bg-red"><i
															class="layui-icon layui-icon-upload"></i>电子票</button>
												</p>
												{/if}

												<p style="margin-top:20px;"> <button type="button"
														data-invoice_id="{$list.invoice_id}"
														class="layui-btn layui-btn-sm up_invoice">凭证</button>
										<!--		<button type="button" data-order_nos="{$list.order_nos}"
														class="layui-btn layui-btn-sm send_einvoice layui-bg-red"><i
															class="layui-icon layui-icon-upload"></i>电子发票</button>
										-->
											{if condition="menuAuth('order_bchcfp')"}
												{if condition="$list['state'] EQ 3"}
												正在申请电子票
												{/if}
												{if condition="!in_array($data['order_type'],[5,7])"}
												{if condition="strstr($list['invoice_proof']['save_path'],'bwjf')"}
												<button type="button" data-id="{$list.invoice_id}" data-url="{$list['invoice_proof']['save_path']}"
													class="layui-btn layui-btn-sm save_location layui-bg-blue">保存</button>
												{else /}
												<button type="button" data-id="{$list.invoice_id}" data-url="{$list['invoice_proof']['save_path']}"
												class="layui-btn layui-btn-sm save_location layui-bg-blue">保存</button>
												<button type="button" data-invoice_url="{$list['invoice_proof']['save_path']}"
													class="layui-btn layui-btn-sm push_juncai layui-bg-blue">推送</button>
												{/if}
												{if condition="$list['hongchong'] EQ 'yes'"}
												 <div class="layui-btn-group">
													 <button type="button" class="layui-btn layui-btn-sm layui-btn-danger">红冲</label>
												<button type="button" data-order_nos="{$list.order_nos}"
													data-api_bianhao="{$list.api_bianhao}"
													class="layui-btn layui-btn-sm send_hongchong  layui-bg-green">电子</button>
												<button type="button" data-order_nos="{$list.order_nos}"
													data-api_bianhao="{$list.api_bianhao}"
													class="layui-btn layui-btn-sm send_sd_hongchong  layui-bg-green">数电</button>
														</div>
												{/if}
												{/if}


												{/if}
												{if condition="strstr($list['invoice_proof']['save_path'],'bwjf')"}
												{else /}
												{if condition="!in_array($data['order_type'],[5,7])"}
												{if condition="menuAuth('order_hqfp')"}
												 <div class="layui-btn-group">
													 <button type="button" class="layui-btn layui-btn-sm layui-btn-danger">获取</label>
												<button type="button" lay-submit data-order_nos="{$list.order_nos}"	class="layui-btn layui-btn-sm check_einvoice layui-bg-green">电子</button>
												<button type="button" lay-submit data-order_nos="{$list.order_nos}"	class="layui-btn layui-btn-sm check_sdinvoice layui-bg-green">数电</button>
												</div>
												{/if}
												{/if}
												<button type="button" data-email="{$data['email']}" data-invoice_url="{$list['invoice_proof']['save_path']}"
														class="layui-btn layui-btn-sm send_email layui-bg-red">发邮件</button>
												{/if}
												</p>
											</div>
										</div>
										{/volist}
										{/if}

									</blockquote>
								</div>
							</div>

							<div class="layui-form-item">
								<div class="layui-input-block" style="margin-left:0px;">
									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										<div style="display: flex; justify-content: space-between;">
											<span>供应商发票申请状态:<font id="apply_invoice_state"></font></span>

											<button id="apply_invoice_shehe" style="margin-left: 20px;display: none;"
												type="button"
												class="layui-btn layui-btn-sm apply_invoice_shehe">申请发票审核</button>
											<button id="apply_invoice_view" style="margin-left: 20px;display: none;"
												type="button"
												class="layui-btn layui-btn-sm apply_invoice_view">查看申请发票</button>
										</div>
										</blockquote>
								</div>
							</div>

						<div class="layui-form-item">
								<div class="layui-input-block" style="margin-left:0px;">
									<blockquote class="layui-elem-quote layui-quote-nm" style="width:88%;">
										{if condition="$data['caigou_invoice_duty'] EQ '' OR $data['caigou_state'] !=
										1"}
										{if condition="$data['is_dianzi'] EQ 1"}
										<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
										  <legend style="color: #FF5722;">选择发票类型</legend>
										  <div class="layui-form-item fp_set fp_set_1">
											  <div class="layui-input-inline" style="width: 100%;">
												  <input type="radio" value="1"
															  checked="" name="invoice_types" lay-skin="primary"
															  title="供应商发票" lay-filter="invoice_types" />
												<input type="radio" value="2" name="invoice_types" lay-skin="primary"
															title="优士发票"  lay-filter="invoice_types" />
												<input type="radio" value="3" name="invoice_types" lay-skin="primary"
															title="定期发票"  lay-filter="invoice_types" />
											  </div>
										  </div>
										</fieldset>
										{/if}
										<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
										  <legend style="color: #FF5722;">第一步</legend>
										  <div class="layui-form-item fp_set fp_set_1">
											  <label class="layui-form-label">采购发票号</label>
											  <div class="layui-input-inline">
												  <input name="caigou_invoice_duty" id="caigou_invoice_duty" type="tel"
													  maxlength="24" class="layui-input" />
											  </div>
										  </div>
										</fieldset>
										<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
										  <legend style="color: #FF5722;">第二步</legend>
											<div class="layui-form-item fp_set fp_set_2">
												<label class="layui-form-label">选择订单号</label>
												<div class="layui-input-inline">
													<textarea name="order_nos" id="order_nos" placeholder="请选择订单号" type="text" readonly class="layui-input"></textarea>
												</div>
											</div>
										</fieldset>
										<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
										  <legend style="color: #FF5722;">第三步</legend>
											<div class="layui-form-item fp_set fp_set_3">
												<div class="layui-input-inline" style="width: 100%!important;">
													<input type="hidden" name="caigou_invoice_pz" id="caigou_invoice_pz" />
													<div class="layui-upload">
													  <div class="layui-upload-list" style="width: 100%;margin:16px 0px">
														<table class="layui-table">
														  <colgroup>
															<col width="70%">
															<col width="30%">
														  </colgroup>
														  <thead>
															<tr><th>文件名</th>
															<th>操作</th>
														  </tr></thead>
														  <tbody id="demoList"></tbody>
														</table>
													  </div>

													</div>

													<div class="up-view">

													</div>
													<button type="button" class="layui-btn layui-btn-normal layui-btn-sm fp_set fp_set_3" style="margin-right: 20px;" id="testList">选择多发票</button>
													<button type="button" style="display: none;margin-right: 20px;" class="layui-btn layui-btn-sm fp_set fp_set_3" id="testListAction">开始上传</button>


												</div>
											</div>
											</fieldset>
											<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
											  <legend style="color: #FF5722;">第四步</legend>
											  {if condition="!in_array($data['order_type'],[5,7])"}
											  <button type="button" lay-filter="submit_caigou_invoice"
												  class="layui-btn layui-btn-sm layui-btn-normal" style="margin-left: 0px;margin-top: 12px;">提交发票信息</button>
											{/if}
											</fieldset>
										{/if}

										<fieldset class="layui-elem-field layui-field-title" style="margin-bottom: 0px;">
										  <legend style="color: #FF5722;">列表</legend>
										  <div class="invoice-list1" style="margin-top: 20px;">
											  {if condition="$data['caigou_invoice_duty'] EQ ''"}
											  [未提交采购发票]
											  {else /}
											  <div class="">
												{volist name="data['caigou_invoice_pz_info']" id="list"}
												<div style="padding-bottom: 5px;">
													{if condition="$data['caigou_state'] NEQ 1"}
													<button type="button" data-key="{$key}"
														class="layui-btn layui-btn-xs layui-btn-danger remove-invoice">
														<i class="layui-icon">&#xe640;</i>
													</button>
													{/if}
													{$i}.发票号：<a href="{$list.save_path}" style="color: #1E9FFF;"
													title="{$list.file_name}" target="_blank">{$list.duty} [{$data.caigou_invoice_time}]<i class="layui-icon layui-icon-link"></i></a>
												</div>
												{/volist}
												<div>发票状态：[{if condition="$data['caigou_state'] EQ 1"}
													<span style="color: #009688;">审核通过</span>
													{elseif condition="$data['caigou_state'] EQ 2" /}
													<span style="color: #1E9FFF;">待审核</span>
													{elseif condition="$data['caigou_state'] EQ 3" /}
													<span style="color: #1E9FFF;">驳回</span>
													{elseif condition="$data['caigou_state'] EQ 5" /}
													<span style="color: #1E9FFF;">快普已提交</span>
													{elseif condition="$data['caigou_state'] EQ 6" /}
													<span style="color: #1E9FFF;">部分开票</span>
													{else /}<span style="color: #FF5722;">未提交</span>{/if}]
												</div>
											  
											  </div>
											  <div style="margin-top: 15px;">
												  {if condition="!in_array($data['order_type'],[5,7])"}
												{if condition="$data['caigou_state'] EQ 2 || $data['caigou_state'] EQ 3"}
											  
												<button type="button" class="layui-btn layui-btn-normal layui-btn-sm"
													lay-filter="pass_caigou">通过</button>
											  
												{/if}
												<button type="button" class="layui-btn layui-btn-sm layui-btn-danger"
													lay-filter="nopass_caigou">驳回</button>
													{/if}
											  </div>
											  {/if}
										  </div>
										  <div class="invoice-list2" style="margin-top: 20px;display: none;">
																						{if condition="$data['utec_caigou_invoice_duty'] EQ ''"}
																						[未提交优士发票]
																						{else /}
																						<div class="">
																						  {volist name="data['utec_caigou_invoice_pz_info']" id="list"}
																						  <div style="padding-bottom: 5px;">
																							  {if condition="$data['utec_invoice_state'] NEQ 1"}
																							  <button type="button" data-key="{$key}"
																								  class="layui-btn layui-btn-xs layui-btn-danger remove-invoice">
																								  <i class="layui-icon">&#xe640;</i>
																							  </button>
																							  {/if}
																							  {$i}.优士发票号：<a href="{$list.save_path}" style="color: #1E9FFF;"
																							  title="{$list.file_name}" target="_blank">{$list.duty}<i class="layui-icon layui-icon-link"></i></a>
																						  </div>
																						  {/volist}
																						  <div>发票状态：[{if condition="$data['utec_invoice_state'] EQ 1"}
																							  <span style="color: #009688;">审核通过</span>
																							  {elseif condition="$data['utec_invoice_state'] EQ 2" /}
																							  <span style="color: #1E9FFF;">待审核</span>
																							  {elseif condition="$data['utec_invoice_state'] EQ 3" /}
																							  <span style="color: #1E9FFF;">驳回</span>
																																	  {/if}]
																						  </div>
																						
																						</div>
																						<div style="margin-top: 15px;">
																						  {if condition="!in_array($data['order_type'],[5,7])"}
																						  {if condition="$data['utec_invoice_state'] EQ 2"}
																						
																						  <button type="button" class="layui-btn layui-btn-normal layui-btn-sm"
																							  lay-filter="pass_caigou_utec">通过</button>
																						
																						  {/if}
																						  <button type="button" class="layui-btn layui-btn-sm layui-btn-danger"
																							  lay-filter="nopass_caigou_utec">驳回</button>
																							{/if}
																						</div>
																						{/if}
										  </div>
										  
										  <div class="invoice-list3" style="margin-top: 20px;display: none;">
																						{if condition="$data['dq_caigou_invoice_duty'] EQ ''"}
																						[未提交定期发票]
																						{else /}
																						<div class="">
																						  {volist name="data['dq_caigou_invoice_pz_info']" id="list"}
																						  <div style="padding-bottom: 5px;">
																							  {if condition="$data['dq_invoice_state'] NEQ 1"}
																							  <button type="button" data-key="{$key}"
																								  class="layui-btn layui-btn-xs layui-btn-danger remove-invoice">
																								  <i class="layui-icon">&#xe640;</i>
																							  </button>
																							  {/if}
																							  {$i}.定期发票号：<a href="{$list.save_path}" style="color: #1E9FFF;"
																							  title="{$list.file_name}" target="_blank">{$list.duty}<i class="layui-icon layui-icon-link"></i></a>
																						  </div>
																						  {/volist}
																						  <div>发票状态：[{if condition="$data['dq_invoice_state'] EQ 1"}
																							  <span style="color: #009688;">审核通过</span>
																							  {elseif condition="$data['dq_invoice_state'] EQ 2" /}
																							  <span style="color: #1E9FFF;">待审核</span>
																							  {elseif condition="$data['dq_invoice_state'] EQ 3" /}
																							  <span style="color: #1E9FFF;">驳回</span>
																							{/if}]
																						  </div>
																						
																						</div>
																						<div style="margin-top: 15px;">
																						  {if condition="!in_array($data['order_type'],[5,7])"}
																						  {if condition="$data['dq_invoice_state'] EQ 2"}
																						
																						  <button type="button" class="layui-btn layui-btn-normal layui-btn-sm"
																							  lay-filter="pass_caigou_dq">通过</button>
																						
																						  {/if}
																						  <button type="button" class="layui-btn layui-btn-sm layui-btn-danger"
																							  lay-filter="nopass_caigou_dq">驳回</button>
																							{/if}
																						</div>
																						{/if}
										  </div>
										  
										  
										  
										</fieldset>
										
									</blockquote>
								</div>
							</div>
						</td>

						<td width="33%" valign="top">
							{if condition="menuAuth('order_pic')"}
							<blockquote class="layui-elem-quote layui-quote-nm">
								<div class="layui-form-item">
									<div>
										<button type="button" class="layui-btn layui-btn-normal layui-btn-sm up_images"><i
												class="layui-icon layui-icon-upload"></i>上传图片</button>
										<button type="button" class="layui-btn layui-btn-warm layui-btn-sm view_images"><i
												class="layui-icon layui-icon-picture"></i>查看图片</button>
										<button type="button" class="layui-btn layui-btn-primary layui-border-red layui-btn-sm images_state">未上传</button>
									</div>
								</div>
							</blockquote>
							{/if}
							<blockquote class="layui-elem-quote layui-quote-nm">
								<div class="layui-form-item">
									<label class="layui-form-label"
										style="width:120px; text-align:left; font-weight:bolder;">用户订单备注</label>
									<div class="layui-input-inline"
										style="color:#ff0000; font-weight:bolder;width:100%;">
										{$jun_param.remark}
									</div>
								</div>
							</blockquote>
							<blockquote class="layui-elem-quote layui-quote-nm">
								<div class="layui-form-item">
									<label class="layui-form-label"
										style="width:120px; text-align:left; font-weight:bolder;">供应商备注</label>
									<div class="layui-input-inline"
										style="color:#ff0000; font-weight:bolder;width:100%;">
										{$data.suppler_bz}
									</div>
								</div>
							</blockquote>
							<blockquote class="layui-elem-quote layui-quote-nm">
								<div class="layui-form-item">
									<label class="layui-form-label"
										style="width:120px; text-align:left; font-weight:bolder;">订单状态:{if condition="$data.jun_order_state GT 0"}{$orderStateArr[$data.jun_order_state]}{/if}</label>
									<div class="layui-input-inline"
										style="color:#ff0000; font-weight:bolder;width:100%;">
										<a class="layui-btn layui-btn-sm layui-btn-normal get-jun-state"
											 data-order-no="{$data.out_order_no}">获取状态</a>
										<div id="out_order_no_state">
											状态:{if condition="$data.jun_order_state GT 0"}{$orderStateArr[$data.jun_order_state]}{/if}
										</div>
									</div>

								</div>
							</blockquote>
							<blockquote class="layui-elem-quote layui-quote-nm">
								<div class="layui-form-item">
									<label class="layui-form-label">收款计时</label>
									<div class="layui-input-inline">
										{if condition="$data['shoukuan_time']"}
										收款倒计时：{$data.shoukuan_time}
										{else /}
										{if condition="!in_array($data['order_type'],[5,7])"}
										<button type="button" class="layui-btn layui-btn-normal layui-btn-sm"
											lay-filter="submit_daojishi">收款倒计时</button>
										{/if}
										{/if}
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">支付方式</label>
									<div class="layui-input-inline">
										<input type="radio" name="pay_type" lay-filter="pay_type" checked=""
											value="{$data.payment}" title="{$data.payment}">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">支付状态</label>
									<div class="layui-input-inline"
										style="font-size: 16px; color: #ff6600; line-height: 38px;">
										{$data.pay_state_text}
									</div>
								</div>
								{if condition="$data['order_state'] EGT 2"}
								<div class="layui-form-item">
									<label class="layui-form-label">支付信息</label>
									<div class="layui-input-inline">
										{if condition="!in_array($data['order_type'],[5,7])"}
										{if condition="$data['pay_state'] EQ 1"}
										<button type="button"
											class="layui-btn layui-btn-normal layui-btn-sm layui-bg-red"
											lay-filter="submit_pay_jun">确认收款</button>
										{else /}
										<button type="button"
											class="layui-btn layui-btn-normal layui-btn-sm layui-bg-green"
											lay-filter="submit_pay_jun">已收款</button>
										{/if}
										{/if}
									</div>
								</div>
								{/if}

							</blockquote>
						</td>

					</tr>
				</table>
				<div class="layui-form-item">
					<label class="layui-form-label">收货地址</label>
					<div class="layui-input-block">
						<blockquote class="layui-elem-quote layui-quote-nm">

							<div id="shopping_list" style=" font-size:18px; font-weight:bolder;">
								{if condition="$data['api_param_arr']['Cityname'].$data['api_param_arr']['address'].$data['api_param_arr']['name'].$data['api_param_arr']['mobile'] NEQ $data['shopping_info']['province_name'].'·'.$data['shopping_info']['city_name'].'·'.$data['shopping_info']['area_name'].$data['shopping_info']['street'].$data['shopping_info']['contacts'].$data['shopping_info']['phone']"}
							{$data.api_param_arr.Cityname} {$data.api_param_arr.address}
								{if condition="$data.api_param_arr.name NEQ ''"}
								（{$data.api_param_arr.name} 收）<span class=phone>{$data.api_param_arr.mobile}</span>
								{/if}
								{/if}
								<div>
							{if condition="menuAuth('order_xgshdz')"}
							<input type="radio" value="{$data.shopping_info.shopping_id}"
										checked="" name="shopping_id" lay-skin="primary"
										title="{$data.shopping_info.province_name} {$data.shopping_info.city_name} {$data.shopping_info.area_name} {$data.shopping_info.street} （{$data.shopping_info.contacts} 收）<span class=phone>{$data.shopping_info.phone}</span><span class=edit_shopping>修改</span>" />
							{else /}
							<input type="radio" value="{$data.shopping_info.shopping_id}"
							checked="" name="shopping_id" lay-skin="primary"
							title="更改为：{$data.shopping_info.province_name} {$data.shopping_info.city_name} {$data.shopping_info.area_name} {$data.shopping_info.street} （{$data.shopping_info.contacts} 收）<span class=phone>{$data.shopping_info.phone}</span>" />
							{/if}
								</div>

							</div>
						</blockquote>
					</div>
				</div>
				<!--
				{if condition="MEMBER_ID EQ '193'"}
				<div class="layui-form-item">
					<div class="layui-input-block" style="margin-left:115px">
						<button type="button" id="lanjian" class="layui-btn layui-btn-normal">揽件</button>
					</div>
				</div>
				{/if}
			-->
				<div class="layui-form-item">
					<label class="layui-form-label">订单商品</label>
					<div class="layui-input-block">
						<input type="hidden" name="goods_skus" value="{$data.cart_info.cart_ids}" />

						<table class="layui-hide" id="goods_list" lay-filter="goods_list"></table>
					</div>
					<textarea id="copy_info" style="width: 1px; height: 1px; color: #ffffff; border-color: #ffffff; resize: none;" readonly></textarea>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">独立商品</label>
					<div class="layui-input-block">
						<table class="layui-hide" id="out_goods_list" lay-filter="out_goods_list"></table>
					</div>
				</div>



				{if condition="$data['order_state'] GT 2"}
				<div class="layui-form-item">
					<label class="layui-form-label">配送信息</label>
					<div class="layui-input-block express-info">
						{volist name="express_list" id="list" length="1"}
						<fieldset class="layui-elem-field {$list.receipt_state==1?'wait':'over'}">
							<legend>{if condition="$list['is_exchange'] EQ 2"}<span
									style="color:#ff6600">【换货】</span>{/if}{$list.express_name}（<span
									class="express_no">{$list.express_no}</span>）<span
									class="express_time">发货时间：{$list.create_time}</span></legend>
							<div class="layui-field-box">
							<!--	{volist name="list['cart_list']" id="vo"}
								<input type="radio" name="express_redio{$list.express_id}_{$vo.cart_id}" checked=""
									value="{$vo.cart_id}" title="{$vo.goods_name}（{$vo.goods_sku}）（数量：{$vo.goods_num}）">
								{/volist}
							-->
								{if condition="$list['receipt_state'] EQ 1"}
								 {if condition="$data['supplier_id'] NEQ '594' and $data['supplier_id'] NEQ '601'"}
								<button type="button" data-id="{$list.express_id}"
									class="layui-btn layui-btn-normal layui-btn-sm"
									lay-filter="submit_receipt">确认收货</button>
									{/if}
								{else /}
								<div style="color: #ff6600;">收货时间：{$list.receipt_time}</div>
								{/if}

								{volist name="kuaidi['data']" id="vo"}
								<div>
									{$vo.time}--{$vo.context}--{$vo.status}--{$vo.areaName}
								</div>
								{/volist}

							</div>
						</fieldset>
						{/volist}
					</div>
				</div>

				{/if}
				{if condition="isset($is_install) and count($is_install) GT 0"}
				<div class="layui-form-item">
					<label class="layui-form-label">安装服务</label>
					<div class="layui-input-block install-info">
						{volist name="is_install" id="list"}
						<fieldset class="layui-elem-field over">
							<legend>{$list.goods_info.goods_name}（<span class="express_no">{$list.goods_sku}</span>）
							</legend>
							<div class="layui-field-box">
								<ul class="layui-timeline layui-timeline-plane layui-timeline-plane3">
									<li class="layui-timeline-item {if condition=" $list['install_info']['step'] EQ 1"}half{elseif condition="$list['install_info']['step'] GT 1" /} over{/if}">
										<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
											$list['install_info']['step'] GT 0"}layui-icon-radio{/if}"></i>
										<div class="layui-timeline-content layui-text">
											<h3 class="layui-timeline-title"><span>申请安装</span></h3>
											{if condition="$list['install_info']['step'] EQ 0"}
											<button type="button" data-cart_id="{$list.cart_id}"
												class="layui-btn layui-btn-normal layui-btn-sm"
												lay-filter="submit_install_info">录入安装信息</button>
											{else /}
											<p>安装地点：{$list['install_info']['option_json']['install_addr']}</p>
											<p>安装时间：{$list['install_info']['option_json']['install_time']}</p>
											<p>　联系人：{$list['install_info']['option_json']['contact_man']}</p>
											<p>联系方式：{$list['install_info']['option_json']['contact_phone']}</p>
											<p>录入时间：{$list['install_info']['option_json']['step_1_time']|date='Y-m-d
												H:i',###}</p>
											{/if}
										</div>
									</li>
									<li class="layui-timeline-item {if condition=" $list['install_info']['step'] EQ 2"}half{elseif condition="$list['install_info']['step'] GT 2" /} over{/if}">
										<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
											$list['install_info']['step'] GT 1"}layui-icon-radio{/if}"></i>
										<div class="layui-timeline-content layui-text">
											<h3 class="layui-timeline-title"><span>指派安装工程师</span></h3>
											{if condition="$list['install_info']['step'] EQ 1"}
											<button type="button" data-cart_id="{$list.cart_id}"
												class="layui-btn layui-btn-normal layui-btn-sm"
												lay-filter="submit_engireer_info">指派工程师</button>
											{elseif condition="$list['install_info']['step'] EQ 0" /}

											{else /}
											<p>　工程师：{$list['install_info']['option_json']['engineer']}</p>
											<p>联系电话：{$list['install_info']['option_json']['engineer_phone']}</p>
											<p>录入时间：{$list['install_info']['option_json']['step_2_time']|date='Y-m-d
												H:i',###}</p>
											{/if}
										</div>
									</li>
									<li class="layui-timeline-item {if condition=" $list['install_info']['step'] EQ 3"
										/} over{/if}">
										<i class="layui-icon layui-timeline-axis layui-icon-circle {if condition="
											$list['install_info']['step'] EQ 3"}layui-icon-radio{/if}"></i>
										<div class="layui-timeline-content layui-text">
											<h3 class="layui-timeline-title"><span>安装完成</span></h3>
											{if condition="$list['install_info']['step'] EQ 2"}
											<button type="button" data-cart_id="{$list.cart_id}"
												class="layui-btn layui-btn-normal layui-btn-sm"
												lay-filter="submit_over_info">安装完成</button>
											{elseif condition="$list['install_info']['step'] LT 2" /}

											{else /}
											<p>完成时间：{$list['install_info']['option_json']['step_3_time']|date='Y-m-d
												H:i',###}</p>
											{/if}
										</div>
									</li>
								</ul>
							</div>
						</fieldset>
						{/volist}
					</div>
				</div>
				{/if}




				<div class="layui-form-item">
					<label class="layui-form-label">付款</label>
					<div class="layui-input-block">
						<blockquote class="layui-elem-quote layui-quote-nm">
							<div>
								<div class="layui-input-inline">
									<select name="ghs_pay">
										<option value="">付款状态</option>
										<option value="4" {if condition="$data['ghs_pay'] EQ 4" }selected="" {/if}>未付款
										</option>
										<option value="1" {if condition="$data['ghs_pay'] EQ 1" }selected="" {/if}>全部付款
										</option>
										<option value="2" {if condition="$data['ghs_pay'] EQ 2" }selected="" {/if}>质保金付款
										</option>
										<option value="3" {if condition="$data['ghs_pay'] EQ 3" }selected="" {/if}>部分付款
										</option>
									</select>
								</div>
								<div class="layui-input-inline">
									<input type="text" name="ghs_intro" placeholder="付款说明" value="{$data.ghs_intro}"
										class="layui-input" />
								</div>
								<button type="button" class="layui-btn layui-btn-normal"
									lay-filter="ghs_pay_btn">确定</button>
							</div>

							{if condition="$data['pay_zhiyi'] NEQ ''"}
							<div style="color: #009688;padding-top: 10px;">
								质疑内容：{$data.pay_zhiyi}
							</div>
							{else /}
							<div style="margin-top: 10px;">
								<div class="layui-input-inline">
									<input type="text" name="pay_zhiyi" placeholder="质疑内容" class="layui-input" />
								</div>
								<button type="button" class="layui-btn layui-btn-normal"
									lay-filter="ghs_zhiye_btn">质疑</button>
							</div>
							{/if}
							{if condition="$data['pay_zhiyi_reback'] NEQ ''"}
							<div style="color: #5FB878;padding-top: 10px;">
								质疑回复：{$data.pay_zhiyi_reback}
							</div>
							{/if}
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">收款状态<br />（供货商）</label>
					<div class="layui-input-block">
						<blockquote class="layui-elem-quote layui-quote-nm">
							<div>
								{switch name="data['shoukuan_pay']"}
								{case value="1"}全部收款{/case}
								{case value="2"}质保金收款{/case}
								{case value="3"}部分收款{/case}
								{case value="4"}未收款{/case}
								{case value="5"}申请收款{/case}
								{default /}未收款
								{/switch}
								{if condition="$data['shoukuan_intro'] NEQ ''"}
								<span style="padding-left: 10px; padding-right: 20px;">备注：{$data.shoukuan_intro}</span>
								{if condition="$data['shoukuan_pay'] EQ '5'"}
								{if condition="$data['confirm_shoukuan_pay'] EQ 1"}
								<span class="layui-bg-green">申请通过</span>
								{elseif condition="$data['confirm_shoukuan_pay'] EQ 2" /}
								<div>
									<span class="layui-input-inline">
										<select name="shenqing_type">
											<option value="2">全部收款</option>
											<option value="3">部分收款</option>
											<option value="4">质保金收款</option>
										</select>
									</span>
									<button type="button" class="layui-btn layui-btn-sm"
										lay-filter="shenqing_pass">申请通过</button>
									<button type="button" class="layui-btn layui-btn-sm layui-btn-danger"
										lay-filter="shenqing_nopass">申请驳回</button>
								</div>
								{else /}
								<span class="layui-bg-red">申请驳回</span>
								{/if}
								{/if}
								{/if}
							</div>
							{if condition="$data['shoukuan_zhiyi'] NEQ ''"}
							<div style="color: #009688; padding-top: 10px;">
								质疑内容：{$data.shoukuan_zhiyi}
							</div>
							{if condition="$data['shoukuan_zhiyi_reback'] NEQ ''"}
							<div style="color: #5FB878;padding-top: 10px;">
								质疑回复：{$data.shoukuan_zhiyi_reback}
							</div>
							{else /}
							<div style="margin-top: 10px;">
								<div class="layui-input-inline">
									<input type="text" name="shoukuan_zhiyi_reback" placeholder="回复质疑内容"
										class="layui-input" />
								</div>
								<button type="button" class="layui-btn layui-btn-normal"
									lay-filter="shoukuan_huifu_btn">回复质疑</button>
							</div>
							{/if}

							{/if}
						</blockquote>
					</div>
				</div>
				<!--
				<div class="layui-form-item">
					<label class="layui-form-label">预计交货日期</label>
					<div class="layui-input-inline">
						<input name="delivery_date" lay-verify="required"  type="text" readonly="" class="layui-input right-select" />
					</div>
				</div>
					-->
				<div class="layui-form-item">
					<label class="layui-form-label">客服提醒<br><font color="#ff0000">禁止回车和特殊符号</font></label>
					<div class="layui-input-block" style="margin-left:115px">
						<textarea name="remark" class="layui-textarea">{$data.remark}</textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label"></label>
					<div class="layui-input-block" style="margin-left:115px">
						<button type="button" id="save_remark" class="layui-btn layui-btn-normal">保存客服提醒</button>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">备注<br><font color="#ff0000">禁止回车和特殊符号</font></label>
					<div class="layui-input-block" style="margin-left:115px">

						<textarea name="member_remark" class="layui-textarea" wrap="off">{$data.member_remark}</textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label"></label>
					<div class="layui-input-block" style="margin-left:115px">
						<button type="button" id="save_member_remark" class="layui-btn layui-btn-normal">保存备注</button>
					</div>

				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">客服备注2</label>
					<div class="layui-input-block" style="margin-left:115px">

						<textarea name="beizhu2" class="layui-textarea" wrap="off">{$data.beizhu2}</textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label"></label>
					<div class="layui-input-block" style="margin-left:115px">
						<button type="button" id="save_beizhu2" class="layui-btn layui-btn-normal">保存客服备注</button>
					</div>

				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">备注记录</label>
					<div class="layui-input-block" style="margin-left:115px">
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;">
							<ul class="layui-timeline">
								{volist name="orderRemarkBeizhu" id="list"}
								<li class="layui-timeline-item" style="padding-bottom: 0px;">
									<i class="layui-icon layui-timeline-axis">&#xe643;</i>
									<div class="layui-timeline-content layui-text">
										<h5 class="layui-timeline-title">
											{$list.create_time}【{$list.username}】 {$list.remark_content}</h5>
									</div>
								</li>
								{/volist}
							</ul>
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">商品备注</label>
					<div class="layui-input-block" style="margin-left:115px">
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;">
							<ul class="layui-timeline ordergoods-remark">

							</ul>
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">订单日志</label>
					<div class="layui-input-block" style="margin-left:115px;display: flex;">
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;width: 50%;">
							<ul class="layui-timeline">
								{volist name="order_log" id="list"}
								{if condition="stripos($list['view_text'],'同步军采数据') === false"}
								<li class="layui-timeline-item" style="padding-bottom: 0px;">
									<i class="layui-icon layui-timeline-axis">&#xe643;</i>
									<div class="layui-timeline-content layui-text">
										<h5 class="layui-timeline-title">
											<!-- {$list.create_time}【{$list.member_info.username}】 {$list.view_text} -->
											{$list.create_time}【{$list.member_id}】 {$list.view_text}
										</h5>
									</div>
								</li>
								{/if}
								{/volist}
							</ul>
						</blockquote>
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;width: 50%;">
							<ul class="layui-timeline">
								{volist name="order_log" id="list"}
								{if condition="stripos($list['view_text'],'同步军采数据') !== false"}
								<li v-if="stripos($list['view_text']) != false" class="layui-timeline-item" style="padding-bottom: 0px;">
									<i class="layui-icon layui-timeline-axis">&#xe643;</i>
									<div class="layui-timeline-content layui-text">
										<h5 class="layui-timeline-title">
											{$list.create_time}【{$list.member_info.username}】 {$list.view_text}</h5>
									</div>
								</li>
								{/if}
								{/volist}
							</ul>
						</blockquote>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">提醒记录</label>
					<div class="layui-input-block" style="margin-left:115px">
						<blockquote class="layui-elem-quote layui-quote-nm" style="height: 200px; overflow-y: auto;">
							<ul class="layui-timeline">
								{volist name="orderRemark" id="list"}
								<li class="layui-timeline-item" style="padding-bottom: 0px;">
									<i class="layui-icon layui-timeline-axis">&#xe643;</i>
									<div class="layui-timeline-content layui-text">
										<h5 class="layui-timeline-title">
											{$list.create_time}【{$list.username}】 {$list.remark_content}</h5>
									</div>
								</li>
								{/volist}
							</ul>
						</blockquote>
					</div>
				</div>
			</form>
		</div>
		<div id="apply_invoice" style="display: none; margin: 20px;">
			<table class="layui-hide" id="apply_invoice_list_old" lay-filter="apply_invoice_list_old">
			  <div class="layui-form-item" style="width:100%;">
				<span style="width:25%; display:block;float:left;">发票抬头：{$data.invoice_info_list[0]['invoice_title']??''}</span>
				<span style="width:25%; display:block;float:left;">发票税号：{$data.invoice_info_list[0]['invoice_duty']??''}</span>
				<span style="width:25%; display:block;float:left;">订单金额：{$data.order_money}</span>
				<span style="width:25%; display:block;float:left;">合计金额：<font class="heji_jine">0</font></span>
			  </div>
			</table>
			<div style="margin-top:20px;"></div>
			<table class="layui-hide" id="apply_invoice_list" lay-filter="apply_invoice_list"></table>
		</div>
		<div id="apply_feizhi" style="display: none; margin: 20px;">
			<div class="layui-form-item">
				<label class="layui-form-label">废止原因</label>
				<div class="layui-input-inline">
					<input type="text" name="reason" placeholder="" autocomplete="off" class="layui-input" style="width: 400px;">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label addRedStar">废止附件</label>
				<div class="layui-input-block">
					<blockquote class="layui-elem-quote layui-quote-nm">
						<div class="layui-upload-list layui-upload-list-feizhi item_container" id="layui-upload-list{$data['order_no']}">
							<ul>

							</ul>
						</div>
						<div class="layui-upload-drag feizhi_pictures_upload" id="feizhi_pictures_upload{$data['order_no']}">
							<i class="layui-icon layui-icon-upload"></i>
							<p>点击或拖拽上传</p>
						</div>
						<div style="clear: both;">

						</div>
					</blockquote>
				</div>
			</div>
		</div>
		<div id="select_goods" style="display: none; margin: 20px;">
			<div class="search-box">
				<form class="search_form layui-form" lay-filter="select_goods_search_form">
					<div class="layui-inline">
						<label class="layui-form-label">分类</label>
						<div class="layui-input-inline">
							<select name="category_sign1" id="category_search1" lay-verify="category_search1"
								lay-search>
							</select>
						</div>
						<div class="layui-input-inline">
							<select name="category_sign2" id="category_search2" lay-verify="category_search2"
								lay-search>
							</select>
						</div>
						<div class="layui-input-inline">
							<select name="category_sign3" id="category_search3" lay-verify="category_search3"
								lay-search>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">品牌</label>
						<div class="layui-input-inline">
							<select name="brand_sign" id="brand_sign" lay-verify="brand_sign" lay-search>
							</select>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">商品编号</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_sku" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">商品名称</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_name" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">型号</label>
						<div class="layui-input-inline">
							<input type="text" name="goods_model" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="pack-up"></div>
				</form>

			</div>
			<!-- <table class="layui-hide" id="select_goods_list" lay-filter="select_goods_list"></table> -->
		</div>
		<div id="select_sale_attr" style="margin: 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_select_sale_attr">
			</form>
		</div>
		<div id="supplier" style="margin: 10px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_supplier" action="{:url('order/saveSupplier')}">
				<input type="hidden" name="order_no" value="{$data.order_no}" />
				<input  type="hidden" name="ruku" value="{$data.ruku}"/>
				<div style="margin-bottom: 20px;display: none;color:#ff0000; font-weight:bold; font-size:18px;" class="tips-brandcert">
					〖该订单需要从厂家或经销商等正规渠道出货 渠道请联系18911354051〗
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">选择供应商</label>
					<div class="layui-input-inline" style="width: 300px;">
						<select name="supplier_id" lay-filter="supplier_id" lay-verify="required" lay-search>
							<option value="0" rate="0"></option>
							{volist name="get_supplier" id="list"}
							<option value="{$list.member_id}" rate="{$list.supplier_rate}">{$list.supplier_name}
							</option>
							{/volist}
						</select>
						<input type="hidden" name="offer_id" value="" />
					</div>
					<div class="layui-input-inline" style="width: 200px;"><button type="button"
							class="layui-btn layui-btn-normal" lay-filter="com_offer">匹配</button></div>
				</div>
				<div class="layui-form-item month-contract-state" style="color: red;display: none;">
					该供应商上月合同尚未上传/审核
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">折扣率（%）</label>
					<div class="layui-input-inline">
						{if condition="menuAuth('order_xgzkl')"}
						<input name="supplier_rate" id="supplier_rate" lay-verify="required" type="number"
							class="layui-input" />
						{else /}
						<input name="supplier_rate" id="supplier_rate" lay-verify="required" type="number"
							class="layui-input" disabled="disabled" />
						{/if}
					</div>
				</div>
				<div class="layui-form-item" style="display: none;">
					<label class="layui-form-label">上次指派</label>
					<div class="layui-input-inline" style="line-height: 38px;">
						{$last_supplier}
					</div>
				</div>

				<div class="layui-form-item">
					<div class="baojiaxinxi" lay-filter="bjd_form">

					</div>
				</div>
				<div style="margin-bottom: 20px;display: none;" class="tips-brandcert">
					提醒合作商〖该订单需要从厂家或经销商等正规渠道出货〗
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_supplier">确认供应商</button>
					</div>
				</div>
				<div class="layui-form-item">
					<div style="font-weight: 600;">曾指派过的供应商</div>
					{volist name="supplier_list" id="list"}
					<div class="cjzp" data-id="{$list.member_id}" data-rate="{$list.supplier_rate}" style="margin-top: 10px;cursor: pointer;border-bottom: 1px solid #D9EDF7;padding-left:20px;padding-bottom:6px">
						{$list.supplier_name}
					</div>
					{/volist}
				</div>
			</form>
		</div>
		<div id="express" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_express" action="{:url('order/addExpress')}">
				<input type="hidden" name="order_no" />
				<input type="hidden" name="cart_goods_skus" />
				<input type="hidden" name="site_id" value="{$site_id}" />
				<div class="layui-form-item">
					<label class="layui-form-label">选择物流</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="express" lay-filter="express" lay-verify="required" lay-search>

						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">物流单号</label>
					<div class="layui-input-inline">
						<input name="express_no" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">预计送达时间</label>
					<div class="layui-input-inline">
						<input name="delivery_date" lay-verify="required" type="text"  class="layui-input right-select" />

					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_express">确认发货</button>
					</div>
				</div>
			</form>
		</div>
		<div id="add_install_info" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_add_install_info" action="{:url('Order/addInstallInfo')}">
				<input type="hidden" name="cart_id" />
				<input type="hidden" name="step" value="1" />
				<div class="layui-form-item">
					<label class="layui-form-label">安装地址</label>
					<div class="layui-input-inline">
						<input name="install_addr" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">安装时间</label>
					<div class="layui-input-inline">
						<input name="install_time" lay-verify="required" type="text" class="layui-input"
							autocomplete="off" readonly="" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系人</label>
					<div class="layui-input-inline">
						<input name="contact_man" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系电话</label>
					<div class="layui-input-inline">
						<input name="contact_phone" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_add_install">确认信息</button>
					</div>
				</div>
			</form>
		</div>
		<div id="add_install_engineer" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_add_install_engineer" action="{:url('Order/addInstallInfo')}">
				<input type="hidden" name="cart_id" />
				<input type="hidden" name="step" value="2" />
				<div class="layui-form-item">
					<label class="layui-form-label">工程师</label>
					<div class="layui-input-inline">
						<input name="engineer" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">工程师电话</label>
					<div class="layui-input-inline">
						<input name="engineer_phone" lay-verify="required" type="tel" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_add_engineer">指派工程师</button>
					</div>
				</div>
			</form>
		</div>
		<div id="add_pay_info" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_add_pay_info" action="{:url('Order/addPayInfo')}">
				<div class="layui-form-item">
					<label class="layui-form-label"></label>
					<div class="layui-input-inline">
						<select name="pay_state" lay-verify="required">
							<option value="2">全部付款</option>
							<option value="3">部分付款</option>
							<option value="4">质保金付款</option>
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">支付银行</label>
					<div class="layui-input-inline">
						<input name="pay_bank" lay-verify="required" type="text" class="layui-input"
							placeholder="支付，宝微信，银行" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">支付账号</label>
					<div class="layui-input-inline">
						<input name="pay_card" lay-verify="required" type="text" class="layui-input"
							placeholder="支付宝微信账号，银行卡号" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">支付户名</label>
					<div class="layui-input-inline">
						<input name="pay_card_name" lay-verify="required" type="text" class="layui-input"
							placeholder="支付账号开户姓名" />
					</div>
				</div>
				<div class="layui-form-item" style="display: none;">
					<label class="layui-form-label">支付单号</label>
					<div class="layui-input-inline">
						<input name="pay_no" type="text" class="layui-input" placeholder="银行、支付宝、微信交易流水" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_add_pay_info">确定支付</button>
					</div>
				</div>
			</form>
		</div>
		<div id="returned_box" style="margin: 40px 20px 60px 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_returned" action="{:url('Order/returned')}">
				<input type="hidden" name="goods_sku" />
				<input type="hidden" name="cart_id" />
				<input type="hidden" name="order_no" value="{$data.order_no}" />
				<div class="layui-form-item">
					<label class="layui-form-label">退换货</label>
					<div class="layui-input-inline">
						<input type="radio" name="returned_type" value="1" title="退货" checked>
						<input type="radio" name="returned_type" value="2" title="换货">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">回寄物流</label>
					<div class="layui-input-inline">
						<select name="back_express" lay-filter="back_express" lay-search>
							<option value="">请选择</option>
							<option value="shunfeng">顺丰速运</option>
							<option value="shentong">申通快递</option>
							<option value="yuantong">圆通速递</option>
							<option value="yundakuaiyun">韵达快运</option>
							<option value="zhongtong">中通快递</option>
							<option value="ems">EMS</option>
							<option value="jd">京东物流</option>
							<option value="baishikuaidi">百世快递</option>
							<option value="bsht">百事亨通</option>
							<option value="tiantian">天天快递</option>
							<option value="youzhengguonei">邮政快递包裹</option>
						</select>

					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">物流单号</label>
					<div class="layui-input-inline">
						<input name="back_express_no" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">退换货数量</label>
					<div class="layui-input-inline">
						<input type="number" name="returned_num" data-cart_num="1"
							lay-verify="required|number|gtzero|ltcart" value="1" class="layui-input"
							style="text-align: center; font-size: 18px; color:#ff6600; width: 80px; padding-right:15px">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">原因</label>
					<div class="layui-input-inline">
						<input name="returned_reason" type="text" class="layui-input" />
					</div>
				</div>


				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_returned">确认申请</button>
					</div>
				</div>
			</form>
		</div>
		<div id="dianzipiao" style="margin: 20px; display: none;">
			<div class="layui-form-item">
				发票抬头：{$data.invoice_info_list[0]['invoice_title']??''}
			</div>
			<div class="layui-form-item">
				发票税号：{$data.invoice_info_list[0]['invoice_duty']??''}
			</div>
			<table class="layui-table">
				<thead>
					<tr>
						<th>税务分类</th>
						<th>税务编码</th>
						<th>开票名称</th>
						<th>规格型号</th>
						<th>单位</th>
						<th>价格</th>
						<th>数量</th>
						<th>税率</th>
						<th>总金额</th>
					</tr>
				</thead>
				<tbody>
				 {volist name="data['cart_info']['list']" id="list"}
					<tr>
						<td>{$list.product_area|default=$list.goods_info.product_area}</td>
						<td>{$list.shuiwu_id|default=$list.goods_info.shuiwu_id}</td>
						<td>{$list.product_firm|default = $list.goods_info.product_firm}</td>
						 <td>{$list.invoice_model|default = $list.goods_info.invoice_model}</td>
						<td>{$list.goods_unit|default = $list.goods_info.goods_unit}</td>
						<td>{$list.goods_price}</td>
						<td>{$list.goods_num|default = $list.goods_info.goods_num}</td>
						<td>{$list.goods_keywords|default = $list.goods_info.goods_keywords}</td>
						<td>{$list.goods_price * $list.goods_num}</td>
					</tr>
					{/volist}
				</tbody>
			</table>
		</div>
		<div id="shopping" style="margin: 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_shopping" action="{:url('shopping/saveData')}">
				<input type="hidden" name="shopping_id" />
				<input type="hidden" name="member_id" />
				<div class="layui-form-item">
					<label class="layui-form-label">配送地址</label>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="province" lay-filter="province" lay-verify="required" lay-search></select>
					</div>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="city" lay-filter="city" lay-verify="required" lay-search></select>
					</div>
					<div class="layui-input-inline" style="width: 200px;">
						<select name="area" lay-filter="area" lay-verify="required" lay-search></select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">详细地址</label>
					<div class="layui-input-inline" style="width: 500px;">
						<input type="text" name="street" lay-verify="required" placeholder="请输详细地址" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">收货人</label>
					<div class="layui-input-inline">
						<input name="contacts" lay-verify="required" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">联系电话</label>
					<div class="layui-input-inline">
						<input name="phone" lay-verify="required|phone|number" type="text" class="layui-input" />
					</div>
				</div>
				<div class="layui-form-item" style="display: none;">
					<label class="layui-form-label"></label>
					<div class="layui-input-inline">
						<input name="is_default" type="checkbox" class="layui-input" title="默认收货地址" />
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_shopping">保存数据</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
			</form>
		</div>
		<div id="out_goods_box" style="margin: 20px; display: none;">
			<form class="layui-form" lay-filter="tpl_order_out_goods" action="{:url('order/saveOutGoods')}">
				<input type="hidden" name="out_goods_id" id="out_goods_id" />
				<input type="hidden" name="out_goods_order_no" id="out_goods_order_no"/>

				<div class="layui-form-item">
					<label class="layui-form-label">运营备注一</label>
					<div class="layui-input-inline">
						<input type="text" name="yunyingbeizhu"  placeholder="请输入运营备注一" autocomplete="off"class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">报备供应商</label>
					<div class="layui-input-inline">
						<input type="text" name="baobeigongyingshang"  placeholder="请输入报备供应商" autocomplete="off"class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">申请时间</label>
					<div class="layui-input-inline">
						<input type="text" name="shengqingshijian"  placeholder="请输入申请时间" autocomplete="off"class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">业务员</label>
					<div class="layui-input-inline">
						<input type="text" name="yewuyuan"  placeholder="请输入业务员" autocomplete="off"class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">分类</label>
					<div class="layui-input-inline">
						<input type="text" name="fenlei"  placeholder="请输入分类" autocomplete="off"class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">军网编码</label>
					<div class="layui-input-inline">
						<input type="text" name="junwangbianhao"  placeholder="请输入军网编码" autocomplete="off"class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label addRedStar">商品名称</label>
					<div class="layui-input-inline">
						<input type="text" name="shagpinmingcheng" lay-verify="required" placeholder="请输入商品名称" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label addRedStar">价格</label>
					<div class="layui-input-inline">
						<input type="number" name="jiage" lay-verify="required" placeholder="请输入商品价格" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label addRedStar">数量</label>
					<div class="layui-input-inline">
						<input type="number" name="shuliang" oninput="value=value.replace(/[^\d]/g,'');" lay-verify="required" placeholder="请输入购买数量" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">不含税金额</label>
					<div class="layui-input-inline">
						<input type="number" name="buhanshuijine" placeholder="请输入不含税金额" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">税额</label>
					<div class="layui-input-inline">
						<input type="number" name="shuie" placeholder="请输入税额" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">税务编码</label>
					<div class="layui-input-inline">
						<input type="text" name="shuiwubianma" placeholder="请输入税务编码" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">税务大类</label>
					<div class="layui-input-inline">
						<input type="text" name="shuiwudalei" placeholder="请输入税务大类" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">开票名称</label>
					<div class="layui-input-inline">
						<input type="text" name="kaipiaomingcheng" placeholder="请输入开票名称" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">规格型号</label>
					<div class="layui-input-inline">
						<input type="text" name="guigexinghao" placeholder="请输入规格型号" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">税率</label>
					<div class="layui-input-inline">
						<input type="number" name="shuilv" placeholder="请输入税率" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">真实库存</label>
					<div class="layui-input-inline">
						<input type="number" name="zhenshikucun" oninput="value=value.replace(/[^\d]/g,'');" placeholder="请输入真实库存" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">备注</label>
					<div class="layui-input-inline">
						<input type="text" name="beizhu" placeholder="请输入备注" autocomplete="off"
							class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">商品编号</label>
					<div class="layui-input-inline">
						<input type="text" name="shangpbianma" placeholder="请输入商品编号" autocomplete="off"
							class="layui-input">
					</div>
				</div>

				<div class="layui-form-item">
					<div class="layui-input-block">
						<button type="button" class="layui-btn layui-btn-normal" lay-submit
							lay-filter="submit_out_order">保存数据</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
			</form>
		</div>
		<script>
			var shopping_list_url = "{:url('shopping/ajaxList')}",
				up_img_arr_url = "{:url('order/upImgArr')}",
				get_img_arr_url = "{:url('order/getImgArr')}",
				get_img_state_url = "{:url('order/getImgState')}",
				order_image_url = "{:url('order/getImage')}",
				month_contract_check_url = "{:url('monthContract/check')}",
				shopping_find_url = "{:url('shopping/ajaxFind')}",
				kuaidiList_url = "{:url('order/KuaidiList')}",
				com_new_custom_url= "{:url('order/comNewCustom')}",
				order_out_goods_url = "{:url('order/outGoods')}",
				goods_cols = {$goods_cols},
				order_out_goods = {$order_out_goods},
				del_out_goods = "{:url('order/deleteOutGoods')}",
				goods_list_url = "{:url('Goods/ajaxList')}",
				select_goods_cols = {$select_goods_cols},
				goods_cols_invoice = {$goods_cols_invoice},
				goods_cols_invoice_old = {$goods_cols_invoice_old},
				select_goods_info = {$data.cart_info.json_data},
				default_date = "{$data.delivery_date}",
				order_no = "{$data.order_no}",
				out_order_no = "{$data.out_order_no}",
				order_edit_url = "{:url('Order/editOrder')}",
				order_edit_cart_beizhu_url = "{:url('Order/cartBeizhu')}",
				lanjian_url = "{:url('order/lanjian')}",
				invoice_info_json = {$data.invoice_info_json},
				remark_info = `{$data.remark}`,
				member_remark_info = `{$data.member_remark}`,
				order_state = "{$data.order_state}",
				depot_list_url = "{:url('Depot/ajaxList')}",
				depot_create_no_url = "{:url('Depot/createNo')}",
				shopping_state = "{$data.shopping_state}",
				save_alone_invoice_url = "{:url('Invoice/saveAloneInvoice')}",
				save_invoice_url = "{:url('Invoice/saveInvoice')}",
				category_select_uri = "{:url('Category/ajaxCategory')}",
				site_id = "{$site_id}",
				upload_uri = "{:url('Upload/uploadOne')}",
				upload_rename_uri = "{:url('Upload/uploadReName')}",
				upload_rename_uri2 = "{:url('Upload/uploadReName2')}",
				upload_rename_old_uri = "{:url('Upload/uploadReNameOld')}",
				paylog_view_url = "{:url('Paylog/views')}",
				brand_select_uri = "{:url('Brand/ajaxList')}",
				com_bjd_uri = "{:url('order/comBjd')}",
				send_e_invoice_uri = "{:url('invoiceapi/makeInvoice')}",
				send_sd_invoice_uri = "{:url('invoiceapi/sdMakeInvoice')}",
				check_e_invoice_uri = "{:url('invoiceapi/checkInvoice')}",
				check_sd_invoice_uri = "{:url('invoiceapi/checkSdInvoice')}",
				send_sd_hc_invoice_uri = "{:url('invoiceapi/sdApplyHzInvoice')}",
				order_type = "{$data.order_type}",
				caigou_invoice_duty = "{$data.caigou_invoice_duty}",
				caigou_invoice_pz = "{$data.caigou_invoice_pz}",
				down_saleht_url = "{:url('order/saleht',array('order_no'=>$data['order_no']))}",
				shouhou_type = "{$data.shouhou_type}",
				caitou_invoice_count = "{$data.caigou_invoice_index}",
				utec_invoice_count = "{$data.utec_invoice_index}",
				dq_invoice_count = "{$data.dq_invoice_index}",
				invoice_types = 1,
				shoukuan_jun_url = "{:url('order/junShoukuan')}",
				shopping_phone = "{$data.shopping_info.phone}",
				get_shopping_phone_url = "{:url('order/getShoppingPhone')}",
				save_apply_invoice_url = "{:url('cart/saveApplyInfo')}",
				search_order_no_url = "{:url('order/searchOrderNo')}",
				order_goods_remark_url = "{:url('order/orderGoodsRemarkLog')}",
				upload_bjd = "{:url('goods/implodeJunXml')}",
				save_location_url = "{:url('invoice/saveLocation')}",
				push_jun_invoice_url = "{:url('invoice/pushJunInvoice')}",
				jun_api_apply = "{:url('jun/api/applyStopOrder')}",
				jun_api_audit = "{:url('jun/api/isStopOrder')}",
				reset_fp_url = "{:url('order/resetFp')}",
				reset_cght_url = "{:url('order/resetCght')}",
				send_mail_attr_url = "{:url('order/sendMailAttr')}",
				send_mail_url = "{:url('index/sendMail')}",
				tiqianshouhuo_url = "{:url('order/tiqian')}",
				copy_city = "{$data.shopping_info.province_name}{$data.shopping_info.city_name}{$data.shopping_info.area_name}",
				copy_street = "{$data.shopping_info.street}（{$data.shopping_info.contacts} 收）{$data.shopping_info.phone}",
				com_new_custom_addr = "{$data.shopping_info.province_name}{$data.shopping_info.city_name}{$data.shopping_info.area_name}{$data.shopping_info.street}",
				com_new_custom_phone = "{$data.shopping_info.phone}",
				copy_beizhu2 = `{$data.beizhu2}`,
				reset_supplier_rate_url = "{:url('order/resetSupplierRate')}",
				apply_state = select_goods_info[0].apply_state,
				get_supplier = {$get_supplier_json},
				create_ysd_url = "{:url('order/exportYanshoudan')}";
			if (select_goods_info[0].apply_state == 1) {
				document.getElementById('apply_invoice_state').innerHTML = '未申请';
			} else if (select_goods_info[0].apply_state == 2) {
				document.getElementById('apply_invoice_state').innerHTML = '等待审核';
				document.getElementById('apply_invoice_shehe').style.display = 'block';
			} else if (select_goods_info[0].apply_state == 3) {
				document.getElementById('apply_invoice_state').innerHTML = '审核通过';
				document.getElementById('apply_invoice_view').style.display = 'block';
			} else {
				document.getElementById('apply_invoice_state').innerHTML = '已驳回,原因:' + select_goods_info[0].nopass_info;
				document.getElementById('apply_invoice_view').style.display = 'block';
			}
		</script>
		<script type="text/javascript" charset="utf-8" src="/static/layui/layui.js"></script>
		<script type="text/javascript" charset="utf-8" src="/static/js/index.js"></script>
		<script type="text/html" id="orderOutGoodsToolbar">
			<div class="layui-btn-container">
				{if condition="!in_array($data['order_type'],[5,7])"}
				<a type="button" data-id="add_out_goods" data-title="新增商品" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="addOutGoods"><i class="layui-icon layui-icon-add-1"></i>新增商品</a>
				<button type="button" style="display:none" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="delGoods"><i class="layui-icon layui-icon-delete"></i>删除</button>
				{/if}
			</div>
		</script>
		<script type="text/html" id="out_goods_tool">
			<div class="layui-btn-group">
				<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit_out_goods"  data-title="修改"><i class="layui-icon layui-icon-edit"></i></a>
				<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del_out_goods" data-title="删除"><i class="layui-icon layui-icon-delete"></i></a>
			</div>
		</script>

		<script type="text/html" id="goodsToolbar">
			<div class="layui-btn-container">
				{{# 
				  if(order_state == 1){ 
			  }}
					<a type="button" data-id="add_goods_to_cart" data-title="选择商品"
						class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="addGoodsToCart"><i
							class="layui-icon layui-icon-add-1"></i>选择商品</a>
					{{# }
				else if(order_state >= 2){
					if(shopping_state != 2){
			}}
						<a type="button" data-id="shopping_goods" style="display:none;"  data-title="发货"
							class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="shoppingGoods"><i
								class="layui-icon layui-icon-release"></i>发货</a>
						{{#
			}
				}
			}}
			{if condition="MEMBER_ID EQ '193'"}
				{if condition="$data['shopping_state'] EQ 2"}
					{if condition="$chk_runs_over EQ 2 OR $chk_runs_over EQ 1" }}
					<a type="button" class="layui-btn layui-btn-normal layui-btn-sm tap-nav" lay-event="tiqianshouhuos">提前收货</a>
					{/if}
				{/if}
			{/if}
			</div>
		</script>
		<script type="text/html" id="goods_tool">
			<div class="layui-btn-group">
				<a href="http://tailongjipc.dixintong.com/goods_detail.html?goods_sku={{d.goods_sku}}" target="_blank"
					class="layui-btn layui-btn layui-btn-xs" data-title="查看"><i class="layui-icon layui-icon-file-b"></i></a>
				<a lay-event="copys" class="layui-btn layui-btn layui-btn-xs" data-title="询价"><i class="layui-icon layui-icon-export"></i></a>
				<a lay-event="xiadan" class="layui-btn layui-btn layui-btn-xs" data-title="下单"><i class="layui-icon layui-icon-cart"></i></a>
			</div>
		</script>


		<script type="text/html" id="select_goods_tool">
			<div class="layui-btn-group">
				<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="select" data-title="选择"><i
						class="layui-icon layui-icon-circle"></i></a>
				<a href="http://tailongjipc.dixintong.com/goods_detail.html?goods_sku={{d.goods_sku}}" target="_blank"
					class="layui-btn layui-btn layui-btn-xs" data-title="查看"><i class="layui-icon layui-icon-file-b"></i></a>
			</div>
		</script>
		<script type="text/html" id="returned_tool">
			<div class="layui-btn-group">
				<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="returned" data-title="申请退换货"
					style="display: none;">申请退换货</a>
			</div>
		</script>
		<script type="text/html" id="goods_pictureTpl">
		{{# if(d.goods_picture){
				return '<img src="'+d.goods_picture.save_path+'" />';
				}
		}}
		</script>
		<script type="text/html" id="sale_attrTpl">
		{{#
				if(d.sale_attr == undefined || d.sale_attr.length == 0){
					return '<span>默认属性</span>';
				} else {
					return '<span class="right-select select-sale-attr">请选择</span>';
				}
			}}
		</script>
		<script src="/static/js/order/detail_main.js" type="text/javascript" charset="utf-8"></script>
	</body>
</html>
